<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>选择器</title>
    <style type="text/css">
       [type]{
            color: red;
       }
        [type=password]{
            color: aqua;
        }
    </style>
</head>
<body>
<form action="#">
    用户名：<input type="text"/>
    密码：<input type="password">
    <input type="submit" value="提交"/>
    <input type="reset" value="重置"/>
</form>
</body>
</html>